<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ page import="domain.User" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>退出登录</title>
</head>
<body>
<%
    Object obj = session.getAttribute("user");
    User u = (User) obj;
    String userLogin = (String) u.getUsername();
    session.invalidate();
%>
<jsp:forward page="login.jsp">
    <jsp:param value="<%=userLogin%>" name="usernameLogined"/>
</jsp:forward>
</body>
</html>